<template>
  <div class="content">
    <div class="contentleft"></div>

    <div class="contentright">
      <!-- <div class="contentrighttop">
        <div class="conrightbouble">
          <ul>
            <li><a href="#" @click="gozhu">不登陆 直接进入主页面</a></li>
          </ul>
        </div>
      </div> -->
      <div class="contentrightbottom">
        <div class="contentrightbottombox">
          <form action="">
            <div class="identity">
              <span @click="clickuser()"
                ><router-link
                  ref="user"
                  :class="userStyleObj"
                  :to="{ name: 'UserLogin' }"
                  >用户</router-link
                ></span
              >
              <span @click="clickmanage()"
                ><router-link
                  ref="manage"
                  :class="manageStyleObj"
                  :to="{ name: 'ManageLogin' }"
                  >管理员</router-link
                ></span
              >
            </div>
            <router-view></router-view>
          </form>
        </div>

        <!-- <p class="conpany">博客项目组版权所有-京ICP备10046444-京公网安备11010802020134号</p> -->
      </div>
    </div>
  </div>
</template>

<script>
// import axios from "axios";

export default {
  name: "Login",
  data() {
    return {
      loginForm: {
        account: "", //账号
        password: "", //密码
        remember: false, //默认不记住密码
        UserStatus: 0, //登录状态（未登录）
      },
      flag: true,
      imgUrl: require("../../assets/close.png"), //密码的显示与隐藏
      agreement: "true", //同意协议（默认同意）
      //用户按钮样式
      userStyleObj: {
        usercommonStyle: true,
        userchooseStyle: false,
      },
      //管理员按钮样式
      manageStyleObj: {
        managecommonStyle: false,
        managechooseStyle: true,
      },
    };
  },
  methods: {
    // 点击用户进行样式的选择
    clickuser() {
      this.userStyleObj.usercommonStyle = true;
      this.userStyleObj.userchooseStyle = false;
      this.manageStyleObj.managecommonStyle = false;
      this.manageStyleObj.managechooseStyle = true;
    },
    // 点击管理员进行样式的选择
    clickmanage() {
      this.userStyleObj.usercommonStyle = false;
      this.userStyleObj.userchooseStyle = true;
      this.manageStyleObj.managecommonStyle = true;
      this.manageStyleObj.managechooseStyle = false;
    },
  },
};
</script>

<style scoped>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
.content {
  background: url(../../assets/3.png);
  width: 100%;
  height: 100%;
  background-size: 100% 100%;
}
li {
  list-style: none;
}
a {
  text-decoration: none !important;
}
.content {
  display: flex;
  background-color: #f9f9f9;
}
.contentleft {
  float: left;
  flex: 1;
}
.contentleft img {
  width: 100%;
  height: 100%;
}

.contentright {
  flex: 3;
  float: left;
}

.conrightlogo {
  float: left;
  font-size: 26px;
  color: #333333;
}
.conrightlogo span {
  text-align: center;
  line-height: 40px;
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: skyblue;
  vertical-align: middle;
  border-radius: 30%;
  margin-right: 20px;
  margin-left: 20px;
}

.contentrightbottom {
  background-repeat: no-repeat;
  width: 100%;
}
.contentrightbottombox {
  opacity: 0.9;
  position: relative;
  overflow: hidden;
  width: 450px;
  height: 500px;
  margin-top: 100px;
  margin-left: 400px;
  border-radius: 5px;
  background-color: #fff;
}

.crbottomlogin {
  width: 360px;
  height: 41px;
  line-height: 31px;
  margin-top: 50px;
  margin-left: 40px;
  border: none;
}
.crbottomlogin .login {
  float: left;
  border-bottom: 4px solid skyblue;
}
.crbottomlogin .regist {
  float: left;
  margin-left: 10px;
}
.crbottomlogin .login a,
.crbottomlogin .regist a {
  font-size: 22px;
  color: #333333;
}

.crbottomcontent .user {
  position: relative;
  z-index: 5;
  border: none;
  outline: none;
  width: 354px;
  height: 60px;
  margin-left: 40px;
  font-size: 17px;
  background-color: #f9f9f9;
  margin-top: 10px;
  padding-left: 20px;
}
.pzh {
  display: none;
  color: red;
  font-size: 12px;
  margin-top: 10px;
  margin-left: 40px;
  margin-bottom: 0px;
}
.pmm {
  display: none;
  color: red;
  font-size: 12px;
  margin-top: 10px;
  margin-left: 40px;
  margin-bottom: 0px;
}

.crbottomcontent .pwd {
  position: relative;
  border: none;
  margin-top: 10px;
  padding-left: 20px;
  outline: none;
  font-size: 17px;
  width: 354px;
  height: 60px;
  margin-left: 40px;
  background-color: #f9f9f9;
}

.rememberpwd {
  margin-left: 80px;
  vertical-align: middle;
}

.crbottomcontent .checks {
  margin-top: 35px;
  width: 16px;
  height: 16px;
  vertical-align: bottom;
  margin-left: 60px;
}
.crbottomcontent span {
  font-size: 14px;
  color: #c1c1c1;
}
.crbottomcontent button {
  border: none;
  margin-top: 25px;
  margin-left: 40px;
  margin-bottom: 20px;
  width: 354px;
  height: 60px;
  font-size: 17px;
  color: #fff;
  font-weight: 600;
  background-color: skyblue;
}
.usercommonStyle {
  display: inline-block;
  margin-left: -25px;
  width: 80px;
  height: 50px;
  line-height: 50px;
  color: #333333;
  font-size: 25px;
  font-weight: 700;
  border-bottom: 5px solid skyblue;
}
.userchooseStyle {
  display: inline-block;
  margin-left: -25px;
  width: 80px;
  height: 50px;
  line-height: 50px;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  border-bottom: none;
}

.managecommonStyle {
  display: inline-block;
  margin-left: -25px;
  width: 80px;
  height: 50px;
  line-height: 50px;
  color: #333333;
  font-size: 25px;
  font-weight: 700;
  border-bottom: 5px solid skyblue;
}
.managechooseStyle {
  display: inline-block;
  margin-left: -25px;
  width: 80px;
  height: 50px;
  line-height: 50px;
  color: #333333;
  font-size: 16px;
  font-weight: 600;
  border-bottom: none;
}

.identity {
  width: 460px;
  height: 75px;

  margin-top: 20px;
  line-height: 75px;
}
.identity span:first-child {
  margin-left: 140px;
  display: inline-block;
  text-align: center;
  line-height: 20px;
  width: 50px;
  height: 25px;
}
.identity span:last-child {
  margin-left: 80px;
  display: inline-block;
  text-align: center;
  line-height: 20px;
  width: 60px;
  height: 25px;
}
.forgetpwd {
  display: inline-block;
  margin-top: 10px;
  margin-left: 120px;
}
.phonelogin {
  display: inline-block;
  margin-left: 180px;
  margin-top: 10px;
}
.phonelogin a,
.forgetpwd a {
  font-size: 17px;
  color: #ff5700;
}
.crbottomcontent .other {
  margin-top: 400px;
  margin-left: 120px;
  font-size: 17px;
  color: #aaaaaa;
  border-bottom: 1px solid #aaaaaa;
}
.crbottomcontent .other:hover {
  color: skyblue;
  border-color: skyblue;
}
.crbottomcontentimg span img {
  height: 46px;
  width: 46px;
}
.crbottomcontentimg span:first-child {
  margin-left: 100px;
}

.conpany {
  margin-top: 20px;
  margin-left: 440px;
  font-size: 12px;
  color: #999999;
}

.change1::placeholder {
  position: absolute;
  top: 5px;
  left: 20px;
  font-size: 12px;
  color: #c1c1c1;
  transition: all 0.3s;
}
.change2::placeholder {
  font-size: 17px;
  color: red;
  transition: all 0.3s;
}

.pwdeyebox {
  position: relative;
}

.eye {
  position: absolute;
  z-index: 50;
  top: 20px;
  right: 15px;
  width: 30px;
  height: 30px;
}
</style>